libxl: only include utmp.h if it's present
authorRoger Pau Monne <roger.pau@citrix.com>
Mon, 2 Jun 2014 15:08:20 +0000 (17:08 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 18 Jun 2014 16:20:42 +0000 (17:20 +0100)
commit8bf33368f682e0e6b41ec7c568296f0028a175d3
tree031929b1d0b07bdd6e150bb0c4e42f9cc88c210c
parent430b17b171a4bbbd7cdc0923ebd7598616f6bbc7
libxl: only include utmp.h if it's present

Add a configure check for utmp.h presence, and gate the usage of
utmp.h in libxl to the result of the test.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
[ ijc -- resolved minor conflict in configure.ac and reran autogen ]
tools/config.h.in
tools/configure
tools/configure.ac
tools/libxl/libxl_bootloader.c